# encoding: utf-8
"""
@author: 夏洛
@QQ: 1972386194
@file: mainsa.py
"""

from flask import Flask,jsonify
import base64
import json
app = Flask(__name__)
@app.route('/')
def index():
    data = '夏洛'

    context = {
        'data':data
    }
    xxxx = base64.b64encode(json.dumps(context).encode())
    return jsonify(context=xxxx)

if __name__ == '__main__':
    app.run()